package org.example.car.system.domain;

import cn.hutool.core.date.DateTime;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName SYS_ROLE
 */
@TableName(value ="SYS_ROLE")
@Data
public class SysRole implements Serializable {
    /**
     * 
     */
    @ExcelProperty(value = "角色编号")
    @TableId(type = IdType.AUTO)
    private Long roleId;

    /**
     * 
     */
    @ExcelProperty(value = "角色名称")
    private String roleName;

    /**
     * 
     */
    @ExcelProperty(value = "角色权限")
    private String roleKey;

    /**
     * 
     */
    @ExcelProperty(value = "角色顺序")
    private Integer roleSort;

    /**
     * 
     */
    private String dataScope;

    /**
     * 
     */
    private Integer menuCheckStrictly;

    /**
     * 
     */
    private Integer deptCheckStrictly;

    /**
     * 
     */
    @ExcelProperty(value = "角色状态")
    private String status;

    /**
     * 
     */
    private String delFlag;

    /**
     * 
     */
    private String createBy;

    /**
     * 
     */
    @ExcelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 
     */
    private String updateBy;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private String remark;
    @TableField(exist = false)
    private Integer pageNum;
    @TableField(exist = false)
    private Integer pageSize;
    @TableField(exist=false)
    private DateTime max;
    @TableField(exist = false)
    private DateTime min;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}